import request from '@/api/request.js'


// 获取新闻类别列表
export function getNewsCategory() {
    return request.get('/news/category')
}

// 创建新闻类别
export function createNewsCategory(data) {
    return request.post('/news/category', data)
}

// 更新新闻类别
export function updateNewsCategory(id, data) {
    return request.put(`/news/category/${id}`, data)
}

// 删除新闻类别
export function deleteNewsCategory(id) {
    return request.delete(`/news/category/${id}`)
}


